package uos.payment;



public class ServiceFactory {
	
	private ICreditAuthorizationServiceAdapter KBcard;
	private ICreditAuthorizationServiceAdapter BCcard;
	
	//singleton
	private static ServiceFactory strateFactory = new ServiceFactory();

	
	private ServiceFactory(){
		this.KBcard = new KBCardCreditAuthorizationServiceAdapter();
		this.BCcard = new BCCardCreditAuthorizationServiceAdapter();
	}
	
	public static ServiceFactory getInstance(){
		return strateFactory;
	}
	
	public ICreditAuthorizationServiceAdapter getKBCardCreditAuthorizationServiceAdapter(){
		return this.KBcard;
	}
	
	public ICreditAuthorizationServiceAdapter getBCCardCreditAuthorizationServiceAdapter(){
		return this.BCcard;
	}
}
